
(synthdef (Out.ar bus (SinOsc.ar 440 0 0.1)))

(synthdef-write
 (synthdef
  "Example"
  ((freq 440.0) (ampl 0.1))
  (Out.ar 0 (SinOsc.ar freq 0 ampl))))

(synthdef-write
 (synthdef 
  "Example"
  ()
  (Out.ar 0 (SinOsc.ar 440 0 0.1))))

;; Rate specifiers may be symbolic.

(synthdef-write
 (synthdef 
  "Example"
  ((bufnum 0 0 initialization)
   (ampl .25 0 0)
   (freq 440 1 control))
  (Out.ar bufnum (SinOsc.ar freq 0 ampl))))

(synthdef-draw "Example")

(synthdef-file-name "Example")

(synthdef-play "Example")

(play (SinOsc.ar 440 0 0.1))


